/**
 * linkReadFooter: 关联可读权限的尾部，如果不传则使用默认路径 read
 * readAuth: [关联可读权限]
 * noRead: 与可读权限不联动
 */

// 首页权限
export const homePageAuth = {
  label: '首页',
  children: [{
    label: '统计图表',
    children: [
      { label: '图表概览',
        children: [{
          id: 'chart:departEdit:read',
          isLast: true,
          label: '可读'
        }, {
          id: 'chart:departEdit:all',
          isLast: true,
          label: '图表编辑'
        }, {
          id: 'chart:departEdit:config',
          isLast: true,
          label: '筛选项配置'
        }, {
          id: 'chart:departEdit:export',
          isLast: true,
          label: '导出图表'
        }, {
          id: 'chart:departEdit:color',
          isLast: true,
          label: '添加主题色'
        }]
      }, {
        label: '图表分类',
        children: [
          {
            label: '图表分类可读',
            id: 'system:chart:read',
            isLast: true
          },
          {
            label: '图表分类全部可读',
            id: 'system:chart:admin',
            isLast: true
          },
          {
            label: '添加分类',
            id: 'system:chart:add',
            isLast: true,
            noRead: true
          },
          {
            label: '编辑',
            id: 'system:chart:edit',
            isLast: true
          },
          {
            label: '删除',
            id: 'system:chart:delete',
            isLast: true
          },
          {
            label: '复制',
            id: 'system:chart:copy',
            isLast: true
          }
        ]
      }
    ]
  }, {
    label: '统计报表',
    children: [{
      label: '报表操作',
      children: [
        {
          label: '全部报表',
          children: [
            {
              id: 'total:report:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'total:report:upload',
              isLast: true,
              label: '上传'
            },
            {
              id: 'total:report:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'total:report:edit',
              isLast: true,
              label: '编辑'
            },
            {
              id: 'total:report:delete',
              isLast: true,
              label: '删除'
            }, {
              id: 'total:report:export',
              isLast: true,
              label: '导出'
            }
          ]
        }, {
          label: '财务/销售',
          children: [
            {
              id: 'total:financereport:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'total:financereport:upload',
              isLast: true,
              label: '上传'
            },
            {
              id: 'total:financereport:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'total:financereport:edit',
              isLast: true,
              label: '编辑'
            },
            {
              id: 'total:financereport:delete',
              isLast: true,
              label: '删除'
            }, {
              id: 'total:financereport:export',
              isLast: true,
              label: '导出'
            }
          ]
        }, {
          label: '内品中心',
          children: [
            {
              id: 'total:brandreport:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'total:brandreport:upload',
              isLast: true,
              label: '上传'
            },
            {
              id: 'total:brandreport:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'total:brandreport:edit',
              isLast: true,
              label: '编辑'
            },
            {
              id: 'total:brandreport:delete',
              isLast: true,
              label: '删除'
            }, {
              id: 'total:brandreport:export',
              isLast: true,
              label: '导出'
            }
          ]
        }, {
          label: '媒介管理',
          children: [
            {
              id: 'total:mediumreport:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'total:mediumreport:upload',
              isLast: true,
              label: '上传'
            },
            {
              id: 'total:mediumreport:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'total:mediumreport:edit',
              isLast: true,
              label: '编辑'
            },
            {
              id: 'total:mediumreport:delete',
              isLast: true,
              label: '删除'
            }, {
              id: 'total:mediumreport:export',
              isLast: true,
              label: '导出'
            }
          ]
        }, {
          label: '萌力星球',
          children: [
            {
              id: 'total:menglireport:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'total:menglireport:upload',
              isLast: true,
              label: '上传'
            },
            {
              id: 'total:menglireport:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'total:menglireport:edit',
              isLast: true,
              label: '编辑'
            },
            {
              id: 'total:menglireport:delete',
              isLast: true,
              label: '删除'
            }, {
              id: 'total:menglireport:export',
              isLast: true,
              label: '导出'
            }
          ]
        }
      ]
    },
    {
      label: '图表操作',
      children: [
        {
          id: 'total:report:chartcreate',
          isLast: true,
          noRead: true,
          label: '新建'
        }, {
          id: 'total:report:chartedit',
          isLast: true,
          noRead: true,
          label: '编辑'
        }, {
          id: 'total:report:chartdelete',
          isLast: true,
          noRead: true,
          label: '删除'
        }
      ]
    }
    ]
  }]
};
// 订单权限
export const orderPageAuth = {
  label: '订单',
  children: [
    {
      label: '渠道订单',
      children: [{
        id: 'crm:orderList:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:orderList:department',
        isLast: true,
        noRead: false,
        label: '部门可读'
      }, {
        id: 'crm:orderList:cooperationDepartment',
        isLast: true,
        noRead: false,
        label: '协作部门可读'
      }, {
        id: 'crm:orderList:cooperationTopDepartment',
        isLast: true,
        noRead: false,
        label: '协作部门顶级可读'
      }, {
        id: 'crm:orderList:topDepartment',
        isLast: true,
        noRead: false,
        label: '顶级部门可读'
      }, {
        id: 'crm:orderList:admin',
        isLast: true,
        noRead: false,
        label: '全部可读'
      }, {
        id: 'crm:orderList:add',
        isLast: true,
        label: '新增订单'
      }, {
        id: 'crm:orderList:addDraft',
        isLast: true,
        label: '新增草稿'
      }, {
        id: 'crm:orderList:export',
        isLast: true,
        label: '导出'
      }, {
        id: 'crm:orderList:import',
        isLast: true,
        label: '导入'
      }, {
        id: 'crm:orderList:allCostImport',
        isLast: true,
        label: '所有成本导入'
      }, {
        id: 'crm:orderList:microCostImport',
        isLast: true,
        label: '微任务成本导入'
      },
      {
        id: 'crm:orderList:exportFinance',
        isLast: true,
        label: '财务报表导出'
      }, {
        id: 'crm:orderList:clientInfo',
        isLast: true,
        noRead: false,
        label: '客户信息查看',
        readAuth: ['crm:orderList:read'],
        notCancelWithAuth: ['crm:orderList:clientInfoEdit']
      }, {
        id: 'crm:orderList:clientInfoEdit',
        isLast: true,
        noRead: false,
        label: '客户信息编辑',
        readAuth: ['crm:orderList:read', 'crm:orderList:clientInfo']
      }, {
        id: 'crm:orderList:publishInfo',
        isLast: true,
        noRead: false,
        label: '发布信息编辑'
      }, {
        id: 'crm:orderList:addAccount',
        isLast: true,
        noRead: false,
        label: '添加核销'
      }, {
        id: 'crm:orderList:costInfo',
        isLast: true,
        noRead: false,
        label: '成本信息编辑'
      }, {
        id: 'crm:orderList:relateCost',
        isLast: true,
        noRead: false,
        label: '关联成本'
      }, {
        id: 'crm:orderList:adminEdit',
        isLast: true,
        noRead: false,
        label: '部门编辑' // 部门全部编辑
      }, {
        id: 'crm:orderList:otherInfo',
        isLast: true,
        noRead: false,
        label: '其他信息编辑'
      }, {
        id: 'crm:orderList:update',
        isLast: true,
        noRead: false,
        label: '更新账号信息'
      }, {
        id: 'crm:orderList:finalUpdate',
        isLast: true,
        noRead: false,
        label: '更新账号信息（最终单）'
      }, {
        id: 'crm:orderList:delete',
        isLast: true,
        noRead: false,
        label: '删除'
      }, {
        id: 'crm:orderList:publish',
        isLast: true,
        noRead: false,
        label: '发布'
      }, {
        id: 'crm:orderList:examine',
        isLast: true,
        noRead: false,
        label: '审批'
      }, {
        id: 'crm:orderList:batchUpload',
        isLast: true,
        noRead: false,
        label: '批量导入编辑'
      }, {
        id: 'crm:orderList:toBeAnnoEdit',
        isLast: true,
        noRead: false,
        label: '待发布编辑'
      },
      //  {
      //   id: 'crm:orderList:toBeAccountEdit',
      //   isLast: true,
      //   noRead: false,
      //   label: '待核算编辑'
      // },
      {
        id: 'crm:orderList:resetChargeOff',
        isLast: true,
        noRead: false,
        label: '重置核销'
      },
      {
        id: 'crm:orderList:dustbinDelete',
        isLast: true,
        label: '回收站-删除'
      }, {
        id: 'crm:orderList:dustbinBatchDelete',
        isLast: true,
        label: '回收站-批量删除'
      }, {
        id: 'crm:orderList:dustbinBatchRestore',
        isLast: true,
        label: '回收站-批量还原'
      }, {
        id: 'crm:orderList:unlimited',
        isLast: true,
        label: '无限制下单'
      }, {
        id: 'crm:orderList:batchPick',
        isLast: true,
        label: '批量开启采集'
      }]
    },
    {
      label: '项目订单',
      children: [
        {
          label: '项目订单管理',
          children: [{
            id: 'crm:project:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:project:department',
            isLast: true,
            label: '部门可读'
          }, {
            id: 'crm:project:topDepartment',
            isLast: true,
            label: '顶级部门可读'
          }, {
            id: 'crm:project:add',
            isLast: true,
            label: '新增项目'
          }, {
            id: 'crm:project:edit',
            isLast: true,
            label: '编辑项目'
          }, {
            id: 'crm:project:del',
            isLast: true,
            label: '删除项目'
          }, {
            id: 'crm:project:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'crm:project:editAdmin',
            isLast: true,
            label: '全部编辑'
          }, {
            id: 'crm:project:submitFirstTrial',
            isLast: true,
            label: '提交审批'
          }, {
            id: 'crm:project:firstTrial',
            isLast: true,
            label: '项目初审'
          }, {
            id: 'crm:project:recheck',
            isLast: true,
            label: '项目复审'
          }, {
            id: 'crm:project:confirm',
            isLast: true,
            label: '项目确认'
          }, {
            id: 'crm:project:seal',
            isLast: true,
            label: '项目封存'
          }, {
            id: 'crm:project:cancelSeal',
            isLast: true,
            label: '取消封存'
          }, {
            id: 'crm:project:export',
            isLast: true,
            label: '导出excel'
          }, {
            id: 'crm:project:listExport',
            isLast: true,
            label: '批量导出'
          }, {
            id: 'crm:project:importAdd',
            isLast: true,
            label: '批量导入新增'
          }, {
            id: 'crm:project:importEdit',
            isLast: true,
            label: '批量导入编辑'
          }, {
            id: 'crm:project:incomeData',
            isLast: true,
            label: '收入数据查看'
          }, {
            id: 'crm:project:privacy',
            isLast: true,
            label: '查看隐私字段'
          }]
        },
        {
          label: '项目订单详情',
          children: [{
            id: 'crm:projectInfo:orderDetailRead',
            isLast: true,
            label: '订单明细可读'
          }, {
            id: 'crm:projectInfo:orderDetailAdmin',
            isLast: true,
            label: '订单明细全部'
          }, {
            id: 'crm:projectInfo:clientInfo',
            isLast: true,
            label: '客户信息查看',
            noRead: true,
            notCancelWithAuth: ['crm:projectInfo:clientInfoEdit']
          }, {
            id: 'crm:projectInfo:clientInfoEdit',
            isLast: true,
            label: '客户信息编辑',
            readAuth: ['crm:projectInfo:clientInfo']
          }, {
            id: 'crm:projectInfo:addOrder',
            isLast: true,
            label: '新增订单'
          }, {
            id: 'crm:projectInfo:deleteOrder',
            isLast: true,
            label: '删除订单'
          }, {
            id: 'crm:projectInfo:importEdit',
            isLast: true,
            label: '批量导入编辑'
          }, {
            id: 'crm:projectInfo:incomeRead',
            isLast: true,
            label: '收入列表可读'
          }, {
            id: 'crm:projectInfo:incomeAdmin',
            isLast: true,
            label: '收入列表全部'
          }, {
            id: 'crm:projectInfo:addIncome',
            isLast: true,
            label: '添加收入项'
          }, {
            id: 'crm:projectInfo:delIncome',
            isLast: true,
            label: '删除收入项'
          }, {
            id: 'crm:projectInfo:costRead',
            isLast: true,
            label: '成本列表可读'
          }, {
            id: 'crm:projectInfo:costAdmin',
            isLast: true,
            label: '成本列表全部'
          }, {
            id: 'crm:projectInfo:addCost',
            isLast: true,
            label: '添加成本项'
          }, {
            id: 'crm:projectInfo:delCost',
            isLast: true,
            label: '删除成本项'
          }, {
            id: 'crm:projectInfo:orderList',
            isLast: true,
            label: '收入列表'
          }, {
            id: 'crm:projectInfo:costList',
            isLast: true,
            label: '成本列表'
          }, {
            id: 'crm:projectInfo:verificateList',
            isLast: true,
            label: '核销记录'
          }, {
            id: 'admin:project:addAccount',
            isLast: true,
            label: '添加核销'
          }, {
            id: 'crm:projectInfo:contractInvoice',
            isLast: true,
            label: '发票合同'
          }, {
            id: 'crm:projectInfo:attachmentUploading',
            isLast: true,
            label: '附件上传'
          }, {
            id: 'crm:project:log',
            isLast: true,
            label: '查看日志明细'
          }]
        },
        {
          label: '项目渠道单管理',
          children: [{
            id: 'crm:projectChild:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:projectChild:add',
            isLast: true,
            label: '新增项目渠道单'
          }, {
            id: 'crm:projectChild:edit',
            isLast: true,
            label: '全部编辑'
          }, {
            id: 'crm:projectChild:del',
            isLast: true,
            label: '删除项目渠道单'
          }, {
            id: 'crm:projectChild:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'crm:projectChild:deptAll',
            isLast: true,
            label: '部门可读'
          }, {
            id: 'crm:projectChild:departmentEdit',
            isLast: true,
            noRead: false,
            label: '部门编辑'
          }, {
            id: 'crm:projectChild:topDepartment',
            isLast: true,
            noRead: false,
            label: '顶级部门可读'
          }, {
            id: 'crm:projectChild:listExport',
            isLast: true,
            label: '批量导出'
          }, {
            id: 'crm:projectChild:importAdd',
            isLast: true,
            label: '批量导入新增'
          }, {
            id: 'crm:projectChild:importEdit',
            isLast: true,
            label: '批量导入编辑'
          }, {
            id: 'crm:projectChild:batchPick',
            isLast: true,
            label: '批量开启采集'
          }]
        }
      ]
    },
    {
      label: '有赞订单',
      children: [{
        id: 'crm:goodsOrder:read',
        isLast: true,
        label: '可读'
      },
      {
        id: 'crm:goodsOrder:import',
        isLast: true,
        label: '导入'
      },
      {
        id: 'crm:goodsOrder:export',
        isLast: true,
        label: '导出'
      },
      {
        id: 'crm:goodsOrder:edit',
        isLast: true,
        label: '编辑'
      }]
    },
    {
      label: '萌力订单',
      children: [{
        label: '全部订单',
        children: [
          {
            id: 'mengli:allOrder:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'mengli:allOrder:admin',
            isLast: true,
            label: '全部可读'
          }
        ]
      },
      {
        label: '商务订单',
        children: [
          {
            id: 'mengli:iPOrder:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'mengli:iPOrder:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'mengli:iPOrder:create',
            isLast: true,
            label: '新建订单'
          }, {
            id: 'mengli:iPOrder:edit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'mengli:iPOrder:delete',
            isLast: true,
            label: '删除'
          }, {
            id: 'mengli:iPOrder:addAccount',
            isLast: true,
            label: '添加核销'
          }, {
            id: 'mengli:iPOrder:editShare',
            isLast: true,
            label: '编辑分成'
          }, {
            id: 'mengli:iPOrder:incomeRead',
            isLast: true,
            label: '收入项可读'
          }, {
            id: 'mengli:iPOrder:incomeAdmin',
            isLast: true,
            label: '收入项全部'
          }, {
            id: 'mengli:iPOrder:incomeAdd',
            isLast: true,
            label: '收入项添加'
          }, {
            id: 'mengli:iPOrder:incomeEdit',
            isLast: true,
            label: '收入项编辑'
          }, {
            id: 'mengli:iPOrder:incomeDelete',
            isLast: true,
            label: '收入项删除'
          }, {
            id: 'mengli:iPOrder:export',
            isLast: true,
            label: '导出'
          }, {
            id: 'mengli:iPOrder:periodsEdit',
            isLast: true,
            label: '修改分期字段'
          }, {
            id: 'mengli:iPOrder:incomeApproval',
            isLast: true,
            label: '收入项审批'
          }
        ]
      },
      // {
      //   label: '营销授权',
      //   children: [
      //     {
      //       id: 'mengli:emojiOrder:read',
      //       isLast: true,
      //       label: '可读'
      //     }, {
      //       id: 'mengli:emojiOrder:admin',
      //       isLast: true,
      //       label: '全部可读'
      //     }, {
      //       id: 'mengli:emojiOrder:create',
      //       isLast: true,
      //       label: '新建订单'
      //     }, {
      //       id: 'mengli:emojiOrder:edit',
      //       isLast: true,
      //       label: '编辑'
      //     }, {
      //       id: 'mengli:emojiOrder:delete',
      //       isLast: true,
      //       label: '删除'
      //     }, {
      //       id: 'mengli:emojiOrder:addAccount',
      //       isLast: true,
      //       label: '添加核销'
      //     }, {
      //       id: 'mengli:emojiOrder:incomeRead',
      //       isLast: true,
      //       label: '收入项可读'
      //     }, {
      //       id: 'mengli:emojiOrder:incomeAdmin',
      //       isLast: true,
      //       label: '收入项全部'
      //     }, {
      //       id: 'mengli:emojiOrder:incomeAdd',
      //       isLast: true,
      //       label: '收入项添加'
      //     }, {
      //       id: 'mengli:emojiOrder:incomeEdit',
      //       isLast: true,
      //       label: '收入项编辑'
      //     }, {
      //       id: 'mengli:emojiOrder:incomeDelete',
      //       isLast: true,
      //       label: '收入项删除'
      //     }, {
      //       id: 'mengli:emojiOrder:export',
      //       isLast: true,
      //       label: '导出'
      //     }
      //   ]
      // }
      // ,
      {
        label: '电商销售',
        children: [
          {
            id: 'mengli:commerceOrder:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'mengli:commerceOrder:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'mengli:commerceOrder:create',
            isLast: true,
            label: '新建订单'
          }, {
            id: 'mengli:commerceOrder:edit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'mengli:commerceOrder:delete',
            isLast: true,
            label: '删除'
          }, {
            id: 'mengli:commerceOrder:export',
            isLast: true,
            label: '导出'
          }, {
            id: 'mengli:commerceOrder:import',
            isLast: true,
            label: '导入'
          }, {
            id: 'mengli:commerceOrder:addAccount',
            isLast: true,
            label: '添加核销'
          }
        ]
      }, {
        label: '电商售后',
        children: [{
          id: 'mengli:afterSale:read',
          isLast: true,
          label: '可读'
        }, {
          id: 'mengli:afterSale:edit',
          isLast: true,
          label: '编辑'
        }, {
          id: 'mengli:afterSale:export',
          isLast: true,
          label: '导出'
        }, {
          id: 'mengli:afterSale:import',
          isLast: true,
          label: '导入'
        }]
      }
      // {
      //   label: '渠道订单',
      //   children: [
      //     {
      //       id: 'mengli:channelOrder:read',
      //       isLast: true,
      //       label: '可读'
      //     }, {
      //       id: 'mengli:channelOrder:admin',
      //       isLast: true,
      //       label: '全部可读'
      //     }, {
      //       id: 'mengli:channelOrder:create',
      //       isLast: true,
      //       label: '新建订单'
      //     }, {
      //       id: 'mengli:channelOrder:edit',
      //       isLast: true,
      //       label: '编辑'
      //     }, {
      //       id: 'mengli:channelOrder:delete',
      //       isLast: true,
      //       label: '删除'
      //     }, {
      //       id: 'mengli:channelOrder:addAccount',
      //       isLast: true,
      //       label: '添加核销'
      //     }
      //   ]
      // }
      ]
    },
    {
      label: '外采额度申请',
      children: [
        {
          id: 'crm:externalHarvest:read',
          isLast: true,
          label: '可读'
        },
        {
          id: 'crm:externalHarvest:create',
          isLast: true,
          label: '新建'
        },
        {
          id: 'crm:externalHarvest:departmentRead',
          isLast: true,
          label: '部门可读'
        },
        {
          id: 'crm:externalHarvest:proposerDept',
          isLast: true,
          label: '申请部门可读'
        },
        {
          id: 'crm:externalHarvest:topDepartment',
          isLast: true,
          label: '顶级申请部门可读'
        },
        {
          id: 'crm:externalHarvest:admin',
          isLast: true,
          label: '全部可读'
        },
        {
          id: 'crm:externalHarvest:approveChange',
          isLast: true,
          label: '转交权限'
        },
        {
          id: 'crm:externalHarvest:record:read',
          isLast: true,
          label: '修改记录查看'
        },
        {
          id: 'crm:externalHarvest:batchExport',
          isLast: true,
          label: '批量导出'
        },
        {
          id: 'crm:externalHarvest:delete',
          isLast: true,
          label: '删除'
        },
        {
          id: 'crm:externalHarvest:comment:delete',
          isLast: true,
          label: '删除评论'
        },
        {
          id: 'crm:externalHarvest:send',
          isLast: true,
          label: '抄送'
        }
      ]
    }
  ]
};
// 资源权限
export const resourcePageAuth = {
  label: '资源',
  extern: 'mediumControlParent',
  children: [
    {
      label: '账号',
      extern: 'mediumControlParent',
      children: [
        {
          label: '账号资源',
          children: [
            {
              label: '资源管理',
              children: [{
                id: 'medium:resource:admin',
                isLast: true,
                label: '全部可读'
              }, {
                id: 'medium:resource:ContentMarketAdmin',
                isLast: true,
                label: '内容营销平台全部可读'
              }, {
                id: 'medium:resource:brandAdmin',
                isLast: true,
                label: '内容品牌中心全部可读'
              }, {
                id: 'medium:resource:mediaAdmin',
                isLast: true,
                label: '销售部-媒介团队全部可读'
              }, {
                id: 'medium:resource:MCNAdmin',
                isLast: true,
                label: '抖音内容运营平台全部可读'
              }, {
                id: 'medium:resource:OtherAdmin',
                isLast: true,
                label: '其他部门全部可读'
              }, {
                id: 'medium:resource:noDepartment',
                isLast: true,
                label: '无部门查看'
              }, {
                id: 'medium:resource:importSign',
                isLast: true,
                label: '导入编辑签约号'
              }]
            },
            {
              label: '平台展示',
              children: [{
                id: 'medium:platform:weibo',
                isLast: true,
                label: '微博'
              }, {
                id: 'medium:platform:weixin',
                isLast: true,
                label: '微信'
              }, {
                id: 'medium:platform:xiaohongshu',
                isLast: true,
                label: '小红书'
              }, {
                id: 'medium:platform:douyin',
                isLast: true,
                label: '抖音'
              }, {
                id: 'medium:platform:bilibili',
                isLast: true,
                label: 'B站'
              }, {
                id: 'medium:platform:live',
                isLast: true,
                label: '直播'
              }, {
                id: 'medium:platform:video',
                isLast: true,
                label: '更多'
              }]
            },
            {
              label: '数据信息展示',
              children: [{
                id: 'medium:dataShow:baseInfo',
                isLast: true,
                label: '基础信息'
              }, {
                id: 'medium:dataShow:priceInfo',
                isLast: true,
                label: '价格信息'
              }, {
                id: 'medium:dataShow:currencyPriceInfo',
                isLast: true,
                label: '通用报价项目'
              },
              { // v1.6新增
                id: 'medium:dataShow:effective',
                isLast: true,
                label: '报价有效期'
              }, { // v1.6新增
                id: 'medium:dataShow:sensitive',
                isLast: true,
                label: '敏感信息'
              }, {
                id: 'medium:dataShow:remarks',
                isLast: true,
                label: '备注'
              }, {
                id: 'medium:dataShow:cases',
                isLast: true,
                label: '案例'
              }, {
                id: 'medium:dataShow:invoiceInfo',
                isLast: true,
                label: '票面信息'
              }, {
                id: 'medium:dataShow:datsInfo',
                isLast: true,
                label: '数据信息'
              }]
            },
            {
              label: '数据信息编辑',
              children: [{
                id: 'medium:dataEdit:createInfo',
                isLast: true,
                label: '账号信息'
              }, {
                id: 'medium:dataEdit:baseInfo',
                isLast: true,
                label: '基础信息'
              }, {
                id: 'medium:dataEdit:priceInfo',
                isLast: true,
                label: '价格信息'
              }, {
                id: 'medium:dataEdit:currencyPriceInfo',
                isLast: true,
                label: '通用报价项目'
              },
              { // v1.6新增
                id: 'medium:dataEdit:effective',
                isLast: true,
                label: '报价有效期'
              }, { // v1.6新增
                id: 'medium:dataEdit:sensitive',
                isLast: true,
                label: '敏感信息'
              }, {
                id: 'medium:dataEdit:remarks',
                isLast: true,
                label: '备注'
              }, {
                id: 'medium:dataEdit:cases',
                isLast: true,
                label: '案例'
              }, {
                id: 'medium:dataEdit:invoiceInfo',
                isLast: true,
                label: '票面信息'
              }, {
                id: 'medium:dataEdit:datsInfo',
                isLast: true,
                label: '数据信息'
              }, {
                id: 'medium:dataEdit:department',
                isLast: true,
                label: '部门编辑'
              }, {
                id: 'medium:dataEdit:admin',
                isLast: true,
                label: '全部编辑'
              }, {
                id: 'medium:resource:departmentEdit',
                isLast: true,
                label: '顶级部门编辑'
              }, {
                id: 'medium:resource:resourceIdEdit',
                isLast: true,
                label: '账号ID编辑'
              }, {
                id: 'medium:dataEdit:moreAccount',
                isLast: true,
                label: '更多账号信息'
              }, {
                id: 'medium:dataEdit:journalInfo',
                isLast: true,
                label: '上刊信息'
              }, {
                id: 'medium:dataEdit:signInfo',
                isLast: true,
                label: '签约信息'
              }, {
                id: 'medium:dataEdit:otherInfo',
                isLast: true,
                label: '更多运营信息'
              }]
            },
            {
              label: '操作内容',
              children: [{
                id: 'medium:operator:resourceAdd',
                isLast: true,
                label: '新增资源'
              }, {
                id: 'medium:operator:export',
                isLast: true,
                label: '导出'
              }, {
                id: 'medium:operator:import',
                isLast: true,
                label: '导入'
              }, {
                id: 'medium:operator:exportAll',
                isLast: true,
                label: '全部导出'
              }, {
                id: 'medium:operator:importAll',
                isLast: true,
                label: '导入新增'
              }, {
                id: 'medium:operator:templateDownload',
                isLast: true,
                label: '模板下载'
              }, {
                id: 'medium:operator:merge',
                isLast: true,
                label: '合并资源'
              }, {
                id: 'medium:operator:importEdit',
                isLast: true,
                label: '导入编辑'
              }, {
                id: 'medium:price:import',
                isLast: true,
                label: '导入上刊'
              }, {
                id: 'medium:resource:signSet',
                isLast: true,
                label: '设置签约'
              }]
            },
            {
              label: '操作',
              children: [{
                id: 'medium:resource:valid',
                isLast: true,
                label: '批量有效'
              }, {
                id: 'medium:resource:invalid',
                isLast: true,
                label: '批量失效'
              }, {
                id: 'medium:resource:batchDelete',
                isLast: true,
                label: '批量删除'
              }, {
                id: 'medium:resource:batchPick',
                isLast: true,
                label: '批量设置采集'
              }]
            },
            {
              label: '改名记录',
              children: [{
                id: 'medium:changeName:create',
                isLast: true,
                label: '新增'
              }, {
                id: 'medium:changeName:edit',
                isLast: true,
                label: '编辑'
              }, {
                id: 'medium:changeName:delete',
                isLast: true,
                label: '删除'
              }, {
                id: 'medium:changeName:import',
                isLast: true,
                label: '导入'
              }, {
                id: 'medium:changeName:export',
                isLast: true,
                label: '导出'
              }]
            }
          ]
        },
        {
          label: '预约日历',
          children: [{
            id: 'crm:subcribe:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:subcribe:add',
            isLast: true,
            label: '新增'
          }, {
            id: 'crm:subcribe:all',
            isLast: true,
            label: '全部'
          }, {
            id: 'crm:subcribe:cancleAffirm',
            isLast: true,
            label: '全部取消确认'
          }]
        }
        // {
        //   label: '询单',
        //   extern: 'mediumControlChildren',
        //   children: [
        //     {
        //       label: '销售',
        //       children: [{
        //         id: 'medium:sale:orderList',
        //         isLast: true,
        //         label: '询单列表'
        //       }, {
        //         id: 'medium:sale:statistics',
        //         isLast: true,
        //         label: '统计'
        //       }]
        //     },
        //     {
        //       label: '执行',
        //       children: [{
        //         id: 'medium:medium:orderList',
        //         isLast: true,
        //         label: '询单列表'
        //       }, {
        //         id: 'medium:medium:allShow',
        //         isLast: true,
        //         label: '全部可读'
        //       }]
        //     }
        //   ]
        // }
      ]
    },
    {
      label: '商品',
      children: [
        {
          label: '有赞商品',
          children: [{
            id: 'crm:goodsList:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:goodsList:import',
            isLast: true,
            label: '导入'
          }, {
            id: 'crm:goodsList:export',
            isLast: true,
            label: '导出'
          }, {
            id: 'crm:goodsList:edit',
            isLast: true,
            label: '编辑'
          }]
        },
        {
          label: '萌力库存',
          children: [{
            label: '萌力库存',
            children: [{
              id: 'mengli:inventory:read',
              isLast: true,
              label: '可读'
            }, {
              id: 'mengli:inventory:add',
              isLast: true,
              label: '新建库存'
            }, {
              id: 'mengli:inventory:edit',
              isLast: true,
              label: '编辑'
            }, {
              id: 'mengli:inventory:securityThresholdEdit',
              isLast: true,
              label: '安全值管理'
            }, {
              id: 'mengli:inventory:defectiveStockOut',
              isLast: true,
              label: '残次品管理'
            }
              // , {
              //   id: 'mengli:inventory:delete',
              //   isLast: true,
              //   label: '删除'
              // },
              // {
              //   id: 'mengli:inventory:detailEdit',
              //   isLast: true,
              //   label: '编辑入库'
              // },
            ]
          }, {
            label: '入库记录',
            children: [{
              id: 'mengli:inventoryLog:read',
              isLast: true,
              readAuth: ['mengli:inventoryLog:read'],
              label: '可读'
            }, {
              id: 'mengli:inventory:import',
              isLast: true,
              readAuth: ['mengli:inventoryLog:read'],
              label: '导入库存'
            }, {
              id: 'mengli:inventory:export',
              isLast: true,
              readAuth: ['mengli:inventoryLog:read'],
              label: '导出库存'
            }, {
              id: 'mengli:inventory:detailAdd',
              isLast: true,
              readAuth: ['mengli:inventoryLog:read'],
              label: '添加入库'
            }, {
              id: 'mengli:inventory:delete',
              isLast: true,
              readAuth: ['mengli:inventoryLog:read'],
              label: '删除入库'
            }, {
              id: 'mengli:inventory:stockTake',
              isLast: true,
              readAuth: ['mengli:inventoryLog:read'],
              label: '库存盘点'
            }, {
              id: 'mengli:inventory:remarkEdit',
              isLast: true,
              readAuth: ['mengli:inventoryLog:read'],
              label: '入库备注编辑'
            }]
          }, {
            label: 'SKU记录',
            children: [{
              id: 'mengli:skuLog:read',
              isLast: true,
              label: '可读'
            }]
          }, {
            label: '结算记录',
            children: [{
              id: 'mengli:settleAccountsLog:read',
              isLast: true,
              label: '可读'
            }, {
              id: 'mengli:settleAccountsLog:generate',
              isLast: true,
              label: '生成结算表单'
            }, {
              id: 'mengli:settleAccountsLog:refresh',
              isLast: true,
              label: '结算详情刷新'
            }, {
              id: 'mengli:settleAccountsLog:export',
              isLast: true,
              label: '导出结算记录'
            }]
          }]
        }
      ]
    },
    {
      label: '表情',
      children: [
        {
          label: '表情包',
          children: [{
            id: 'mengli:list:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'mengli:list:create',
            isLast: true,
            label: '新建编辑'
          }]
        },
        {
          label: 'IP形象',
          children: [{
            id: 'mengli:ipImage:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'mengli:ipImage:export',
            isLast: true,
            label: '导出'
          }, {
            id: 'mengli:ipImage:create',
            isLast: true,
            label: '新建IP形象'
          }, {
            id: 'mengli:ipImage:edit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'mengli:ipImage:delete',
            isLast: true,
            label: '删除'
          }]
        }
      ]
    }
  ]
};
export const operatePageAuth = {
  label: '运营',
  children: [
    {
      label: '精力分配',
      children: [{
        id: 'energy:energyList:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'energy:energyList:admin',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'energy:energyList:creat',
        isLast: true,
        label: '新建'
      }, {
        id: 'energy:energyList:export',
        isLast: true,
        label: '导出'
      }, {
        id: 'energy:energyList:import',
        isLast: true,
        label: '导入'
      }, {
        label: '删除',
        isLast: true,
        id: 'energy:energyList:delete'
      }, {
        id: 'energy:energyList:sendReminder',
        isLast: true,
        label: '发送通知'
      }, {
        id: 'energy:department:read',
        isLast: true,
        label: '部门可读',
        readAuth: ['energy:energyList:read']
      }, {
        id: 'energy:department:edit',
        isLast: true,
        label: '部门编辑',
        readAuth: ['energy:energyList:read']
      }, {
        id: 'energy:energyEdit:all',
        isLast: true,
        label: '编辑全部',
        readAuth: ['energy:energyList:read']
      }, {
        id: 'energy:energyAudit:approverChange',
        isLast: true,
        label: '转交权限',
        readAuth: ['energy:energyList:read']
      }, {
        id: 'energy:energyAudit:higherRecall',
        isLast: true,
        label: '高级撤回',
        readAuth: ['energy:energyList:read']
      }, {
        id: 'crm:energy:comment:delete',
        isLast: true,
        label: '删除评论'
      }, {
        id: 'crm:energy:send',
        isLast: true,
        label: '抄送'
      }
      ]
    }, {
      label: '发布管理',
      children: [{
        id: 'publish:publishList:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'publish:publishList:admin',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'publish:department:read',
        isLast: true,
        label: '部门可读',
        readAuth: ['publish:publishList:read']
      }, {
        id: 'publish:publishList:addPick',
        isLast: true,
        label: '加入采集'
      }, {
        id: 'publish:publishList:completePick',
        isLast: true,
        label: '完成采集'
      }, {
        id: 'publish:publishList:stopPick',
        isLast: true,
        label: '停止采集'
      }, {
        id: 'publish:publishList:export',
        isLast: true,
        label: '导出'
      }, {
        id: 'publish:publishList:goToOrder',
        isLast: true,
        label: '关联订单跳转'
      }, {
        id: 'publish:publishList:createOrImport',
        isLast: true,
        label: '新建/导入链接'
      }, {
        id: 'publish:publishList:delete',
        isLast: true,
        label: '删除'
      }, {
        id: 'publish:screenshot:manage',
        isLast: true,
        label: '截图管理'
      }]
    }, {
      label: '账号监测',
      children: [{
        id: 'crm:accounts:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:accounts:add',
        isLast: true,
        label: '添加账号'
      }, {
        id: 'crm:accounts:health',
        isLast: true,
        label: '健康值设置'
      }, {
        id: 'crm:accounts:operator',
        isLast: true,
        label: '运营人员设置'
      }, {
        id: 'crm:accounts:monitor',
        isLast: true,
        label: '监测设置(达标)'
      }, {
        id: 'crm:accounts:import',
        isLast: true,
        label: '导入'
      }, {
        id: 'crm:accounts:export',
        isLast: true,
        label: '导出'
      }, {
        id: 'crm:accounts:weibo',
        isLast: true,
        label: '微博处理'
      }, {
        id: 'crm:accounts:collectManage',
        isLast: true,
        label: '采集效果管理'
      }, {
        id: 'crm:accounts:collectStop',
        isLast: true,
        label: '监测设置(效果)'
      }, {
        id: 'crm:accounts:stateSet',
        isLast: true,
        label: '账号状态设置'
      }, {
        id: 'crm:accounts:notify',
        isLast: true,
        label: '通知规则设置'
      }
      ]
    }, {
      label: '目标管理',
      children: [{
        label: '双微目标',
        children: [{
          id: 'crm:target:read',
          isLast: true,
          label: '可读'
        }, {
          id: 'crm:target:editAll',
          isLast: true,
          label: '全局编辑'
        }, {
          id: 'crm:target:export',
          isLast: true,
          label: '导出目标'
        }, {
          id: 'crm:target:import',
          isLast: true,
          label: '导入目标'
        }]
      }, {
        label: '签约目标',
        children: [{
          id: 'crm:signTarget:read',
          isLast: true,
          label: '可读'
        }, {
          id: 'crm:signTarget:edit',
          isLast: true,
          label: '编辑'
        }]
      }]
    }
    // {
    //   label: '实时热榜',
    //   children: [{
    //     id: 'crm:hotList:read',
    //     isLast: true,
    //     label: '可读'
    //   }]
    // }
  ]
};
// 客户权限
export const customerPageAuth = {
  label: '客户',
  children: [
    {
      label: '销售客户',
      children: [{
        label: '列表可读权限',
        children: [
          {
            id: 'crm:customer:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:customer:department',
            isLast: true,
            label: '部门可读'
          }, {
            id: 'crm:customer:topDepartment',
            isLast: true,
            label: '顶级部门可读'
          }, {
            id: 'crm:customer:admin',
            isLast: true,
            label: '客户管理全部可读'
          }, {
            id: 'crm:customer:ContentMarketAdmin',
            isLast: true,
            label: '内容营销平台全部可读'
          }, {
            id: 'crm:customer:mediaAdmin',
            isLast: true,
            label: '销售部全部可读'
          }, {
            id: 'crm:customer:OtherAdmin',
            isLast: true,
            label: '其他部门全部可读'
          }, {
            id: 'crm:customer:noDepartment',
            isLast: true,
            label: '无部门查看'
          }
        ]
      }, {
        label: '操作功能',
        children: [
          {
            id: 'crm:customer:add',
            isLast: true,
            label: '新增客户'
          }, {
            id: 'crm:customer:delete',
            isLast: true,
            label: '删除客户'
          }, {
            id: 'crm:customer:export',
            isLast: true,
            label: '导出'
          }, {
            id: 'crm:customer:import',
            isLast: true,
            label: '导入'
          }, {
            id: 'crm:customer:changePayerStatus',
            isLast: true,
            label: '变更付款人状态'
          }, {
            id: 'crm:customer:deleteContact',
            isLast: true,
            label: '删除联系人'
          }, {
            id: 'crm:customer:deletePayer',
            isLast: true,
            label: '删除付款人'
          }, {
            id: 'crm:customer:detailOrderExport',
            isLast: true,
            label: '导出客户订单'
          }, {
            id: 'crm:customer:updateSales',
            isLast: true,
            label: '更新客户销售'
          }, {
            id: 'crm:customer:setAssociate',
            isLast: true,
            label: '设置协作人'
          }, {
            id: 'crm:customer:batchDelete',
            isLast: true,
            label: '批量删除'
          }, {
            id: 'crm:customer:edit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'crm:customer:editClientName',
            isLast: true,
            label: '客户名称编辑'
          }, {
            id: 'crm:customer:levelInfoStore',
            isLast: true,
            label: '调整客户等级/额度/账期'
          }, {
            id: 'crm:customer:typeEdit',
            isLast: true,
            label: '客户类型编辑'
          }
        ]
      }, {
        label: '详情栏位权限',
        children: [
          {
            id: 'crm:customer:clientInfo:read',
            isLast: true,
            label: '客户信息'
          }, {
            id: 'crm:customer:levelInfo:read',
            isLast: true,
            label: '等级账期'
          }, {
            id: 'crm:customer:invoiceInfo:read',
            isLast: true,
            label: '开票信息'
          }, {
            id: 'crm:customer:orderInfo:read',
            isLast: true,
            label: '订单信息'
          }, {
            id: 'crm:customer:contactsInfo:read',
            isLast: true,
            label: '联系人信息'
          }, {
            id: 'crm:customer:payerInfo:read',
            isLast: true,
            label: '付款人信息'
          }, {
            id: 'crm:customer:contractInfo:read',
            isLast: true,
            label: '关联合同'
          }, {
            id: 'crm:customer:LogInfo:read',
            isLast: true,
            label: '操作日志'
          }
        ]
      }]
    },
    {
      label: '客户协作申请',
      children: [
        {
          id: 'crm:customerCooperation:departmentRead',
          isLast: true,
          label: '部门可读'
        },
        {
          id: 'crm:customerCooperation:admin',
          isLast: true,
          label: '全部可读'
        }
      ]
    },
    {
      label: '客户调额申请',
      children: [
        {
          id: 'crm:customerAdjustment:read',
          isLast: true,
          label: '可读'
        },
        {
          id: 'crm:customerAdjustment:create',
          isLast: true,
          label: '新建'
        },
        {
          id: 'crm:customerAdjustment:departmentRead',
          isLast: true,
          label: '部门可读'
        },
        {
          id: 'crm:customerAdjustment:proposerDept',
          isLast: true,
          label: '申请部门可读'
        },
        {
          id: 'crm:customerAdjustment:topProposerDept',
          isLast: true,
          label: '顶级申请部门可读'
        },
        {
          id: 'crm:customerAdjustment:admin',
          isLast: true,
          label: '全部可读'
        },
        {
          id: 'crm:customerAdjustment:approveChange',
          isLast: true,
          label: '转交权限'
        },
        {
          id: 'crm:customerAdjustment:record:read',
          isLast: true,
          label: '修改记录查看'
        },
        {
          id: 'crm:customerAdjustment:batchExport',
          isLast: true,
          label: '批量导出'
        },
        {
          id: 'crm:customerAdjustment:delete',
          isLast: true,
          label: '删除'
        },
        {
          id: 'crm:customerAdjustment:comment:delete',
          isLast: true,
          label: '删除评论'
        },
        {
          id: 'crm:customerAdjustment:send',
          isLast: true,
          label: '抄送'
        }
      ]
    },
    {
      label: '萌力客户',
      children: [{
        id: 'mengli:customer:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'mengli:customer:admin',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'mengli:customer:create',
        isLast: true,
        label: '新建'
      }, {
        id: 'mengli:customer:edit',
        isLast: true,
        label: '编辑'
      }, {
        id: 'mengli:customer:delete',
        isLast: true,
        label: '删除'
      }, {
        id: 'mengli:customer:deleteContact',
        isLast: true,
        label: '删除联系人'
      }, {
        id: 'mengli:customer:editClientName',
        isLast: true,
        label: '客户名称编辑'
      }, {
        id: 'mengli:customer:department',
        isLast: true,
        label: '部门可读'
      }]
    },
    {
      label: '客户结算',
      children: [{
        id: 'crm:customer:customerSettle',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '可读'
      }, {
        id: 'crm:customer:createSettle',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '生成结算单'
      }, {
        id: 'crm:customer:examine',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '审批'
      }, {
        id: 'crm:customer:complete',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '封存'
      }, {
        id: 'crm:customer:customerDelete',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '删除结算单'
      }, {
        id: 'crm:customer:settlementAdmin',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '结算单全部查看'
      },
      {
        id: 'crm:customer:submitSeal',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '提交封存'
      },
      {
        id: 'crm:customer:backSeal',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '驳回待审批'
      }, {
        id: 'crm:customerSettle:export',
        isLast: true,
        linkReadFooter: 'customerSettle',
        label: '导出'
      }]
    },
    {
      label: '回款报表',
      children: [
        {
          id: 'crm:return:read',
          isLast: true,
          label: '可读'
        },
        {
          id: 'crm:return:department',
          isLast: true,
          label: '部门可读'
        },
        {
          id: 'crm:return:topDepartment',
          isLast: true,
          label: '顶级部门可读'
        },
        {
          id: 'crm:return:admin',
          isLast: true,
          label: '全部可读'
        },
        {
          id: 'crm:return:create',
          isLast: true,
          label: '生成报表'
        },
        {
          id: 'crm:return:delete',
          isLast: true,
          label: '删除'
        }
      ]
    },
    {
      label: '客户账单',
      children: [
        {
          id: 'crm:customerBill:read',
          isLast: true,
          label: '可读'
        },
        {
          id: 'crm:customerBill:add',
          isLast: true,
          label: '添加账单'
        },
        {
          id: 'crm:customerBill:export',
          isLast: true,
          label: '导出'
        },
        {
          id: 'crm:customerBill:update',
          isLast: true,
          label: '更新账单'
        }
      ]
    }
  ]
};
// 供应权限
export const supplierPageAuth = {
  label: '供应',
  children: [
    {
      label: '飞博供应商',
      children: [{
        id: 'medium:supplier:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'medium:supplier:admin',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'medium:supplier:edit',
        isLast: true,
        label: '新增/编辑供应商'
      }, {
        id: 'medium:supplier:ruleRead',
        isLast: true,
        label: '规则查看'
      }, {
        id: 'medium:supplier:ruleEdit',
        isLast: true,
        label: '新建/编辑规则'
      }, {
        id: 'medium:supplier:resourceRead',
        isLast: true,
        label: '关联资源查看'
      }, {
        id: 'medium:supplier:resourceEdit',
        isLast: true,
        label: '关联资源编辑'
      },
      {
        id: 'medium:supplier:ContentMarketAdmin',
        isLast: true,
        label: '内容营销平台全部可读'
      }, {
        id: 'medium:supplier:mediaAdmin',
        isLast: true,
        label: '销售部-媒介团队全部可读'
      }, {
        id: 'medium:supplier:mediaBusinessAdmin',
        isLast: true,
        label: '销售部全部可读'
      }, {
        id: 'medium:supplier:OtherAdmin',
        isLast: true,
        label: '其他部门全部可读'
      }, {
        id: 'medium:supplier:noDepartment',
        isLast: true,
        label: '无部门查看'
      }, {
        id: 'medium:supplier:modifyAuditApply',
        isLast: true,
        label: '申请修改审批权限'
      }, {
        id: 'medium:supplier:editSupplierName',
        isLast: true,
        label: '供应商名称编辑'
      }, {
        id: 'medium:supplier:editSupplierType',
        isLast: true,
        label: '供应商类型编辑'
      }]
    },
    {
      label: '有赞供应商',
      children: [{
        id: 'crm:commerceSupplier:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:commerceSupplier:add',
        isLast: true,
        label: '新建'
      }, {
        id: 'crm:commerceSupplier:edit',
        isLast: true,
        label: '编辑'
      }, {
        id: 'crm:commerceSupplier:del',
        isLast: true,
        label: '删除'
      }, {
        id: 'crm:commerceSupplier:import',
        isLast: true,
        label: '导入'
      }, {
        id: 'crm:commerceSupplier:editSupplierName',
        isLast: true,
        label: '供应商名称编辑'
      }]
    },
    {
      label: '萌力供应商',
      children: [{
        id: 'mengli:supplier:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'mengli:supplier:admin',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'mengli:supplier:create',
        isLast: true,
        label: '新建'
      }, {
        id: 'mengli:supplier:edit',
        isLast: true,
        label: '编辑'
      }, {
        id: 'mengli:supplier:delete',
        isLast: true,
        label: '删除'
      }, {
        id: 'mengli:supplier:editSupplierName',
        isLast: true,
        label: '供应商名称编辑'
      }, {
        id: 'mengli:supplier:import',
        isLast: true,
        label: '导入'
      }, {
        id: 'mengli:supplier:export',
        isLast: true,
        label: '导出'
      }]
    },
    {
      label: '达人初筛',
      children: [{
        label: '可读',
        children: [{
          id: 'crm:filter:read',
          isLast: true,
          label: '可读'
        }, {
          id: 'crm:filter:department',
          isLast: true,
          label: '部门可读'
        }, {
          id: 'crm:filter:all',
          isLast: true,
          label: '全部可读'
        }, {
          id: 'crm:filter:record:read',
          isLast: true,
          label: '修改记录查看'
        }]
      }, {
        label: '操作',
        children: [{
          id: 'crm:filter:add',
          isLast: true,
          label: '新建'
        }, {
          id: 'crm:filter:edit',
          isLast: true,
          label: '全部编辑'
        }, {
          id: 'crm:filter:departmentEdit',
          isLast: true,
          label: '部门编辑'
        }, {
          id: 'crm:filter:approveChange',
          isLast: true,
          label: '转交权限'
        }, {
          id: 'crm:filter:delete',
          isLast: true,
          label: '删除'
        }, {
          id: 'crm:filter:invite',
          isLast: true,
          label: '邀请评分'
        }, {
          id: 'crm:filter:batchInvite',
          isLast: true,
          label: '批量邀请评分'
        }, {
          id: 'crm:filter:score',
          isLast: true,
          label: '评分'
        }, {
          id: 'crm:filter:signUp',
          isLast: true,
          label: '发起签约'
        }, {
          id: 'crm:filter:import',
          isLast: true,
          label: '导入'
        }, {
          id: 'crm:filter:export',
          isLast: true,
          label: '导出'
        }, {
          id: 'crm:filter:business',
          isLast: true,
          label: '商务评分'
        }, {
          id: 'crm:filter:medium',
          isLast: true,
          label: '媒介评分'
        }, {
          id: 'crm:filter:comment:delete',
          isLast: true,
          label: '删除评论'
        }, {
          id: 'crm:filter:send',
          isLast: true,
          label: '抄送'
        }]
      }]
    },
    {
      label: '签约内审',
      children: [{
        id: 'signUp:signUp:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'signUp:signUp:creat',
        isLast: true,
        label: '新建'
      }, {
        id: 'signUp:department:read',
        readAuth: ['signUp:signUp:read'],
        isLast: true,
        label: '部门可读'
      }, {
        id: 'signUp:signUp:adminRead',
        isLast: true,
        label: '全部可读'
      }, {
        label: '删除',
        isLast: true,
        id: 'signUp:signUp:delete'
      }, {
        id: 'signUp:signUpAudit:approveChange',
        readAuth: ['signUp:signUp:read'],
        isLast: true,
        label: '转交权限'
      }, {
      //   id: 'signUp:signUpAudit:higherRecall',
      //   readAuth: ['signUp:signUp:read',
      //   isLast: true,
      //   label: '高级撤回'
      // }, {
        id: 'crm:signUp:comment:delete',
        readAuth: ['signUp:signUp:read'],
        isLast: true,
        label: '删除评论'
      }, {
        id: 'crm:signUp:send',
        readAuth: ['signUp:signUp:read'],
        isLast: true,
        label: '抄送'
      },
      // {
      //   id: 'crm:signUp:autoRenewal',
      //   readAuth: ['signUp:signUp:read',
      //   isLast: true,
      //   label: '自动续约'
      // },
      {
        id: 'crm:signUp:export',
        readAuth: ['signUp:signUp:read'],
        isLast: true,
        label: '导出签约信息'
      }]
    }, {
      label: '达人上刊',
      children: [{
        id: 'crm:upOline:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:upOline:department',
        isLast: true,
        label: '部门可读'
      }, {
        id: 'crm:upOline:adminRead',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'crm:upOline:create',
        isLast: true,
        label: '新建'
      }, {
        id: 'crm:upOline:edit',
        isLast: true,
        label: '编辑资源'
      }, {
        label: '删除',
        isLast: true,
        id: 'crm:upOline:delete'
      }, {
        id: 'crm:upOline:approverChange',
        isLast: true,
        label: '转交权限',
        readAuth: ['crm:upOline:read']
      }, {
        id: 'crm:upOline:comment:delete',
        isLast: true,
        label: '删除评论'
      }, {
        id: 'crm:upOline:send',
        isLast: true,
        label: '抄送'
      }]
    }, {
      label: '达人解约',
      children: [{
        id: 'crm:termination:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:termination:create',
        isLast: true,
        label: '新建'
      }, {
        id: 'crm:termination:department',
        isLast: true,
        label: '部门可读'
      }, {
        id: 'crm:termination:adminRead',
        isLast: true,
        label: '全部可读'
      }, {
        label: '删除',
        isLast: true,
        id: 'crm:termination:delete'
      }, {
        id: 'crm:termination:approveChange',
        isLast: true,
        label: '转交权限'
      }, {
        id: 'crm:termination:deleteComment',
        isLast: true,
        label: '删除评论'
      }, {
        id: 'crm:termination:send',
        isLast: true,
        label: '抄送'
      }]
      /* {
        id: 'crm:termination:higherRecall',
        isLast: true,
        label: '高级撤回'
      }, */
    }, {
      label: '飞来用户',
      children: [{
        id: 'crm:flyUser:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:flyUser:setStatus',
        isLast: true,
        label: '设置启用禁用'
      }, {
        id: 'crm:flyUser:createSignUp',
        isLast: true,
        label: '发起签约'
      }, {
        id: 'crm:flyUser:createSupplier',
        isLast: true,
        label: '新建供应商'
      }, {
        isLast: true,
        id: 'crm:flyUser:relateSupplier',
        label: '关联供应商'
      }, {
        id: 'crm:flyUser:updateAccount',
        isLast: true,
        label: '更新账号信息'
      }, {
        id: 'crm:flyUser:updateSupplier',
        isLast: true,
        label: '更新达人信息'
      }, {
        id: 'crm:flyUser:wxCode:edit',
        isLast: true,
        label: '微信号编辑'
      }, {
        id: 'crm:flyUser:batchSetStatus',
        isLast: true,
        label: '一键启用/禁用'
      }]
    },
    {
      label: '飞来询单',
      children: [{
        id: 'crm:flyNotice:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:flyNotice:departmentRead',
        isLast: true,
        label: '部门可读'
      }, {
        id: 'crm:flyNotice:allRead',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'crm:flyNotice:create',
        isLast: true,
        label: '新建'
      }, {
        isLast: true,
        id: 'crm:flyNotice:delete',
        label: '删除'
      }, {
        isLast: true,
        id: 'crm:queryOrder:export',
        label: '导出'
      }]
    },
    {
      label: '飞来询价',
      children: [{
        id: 'crm:flyPrice:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:flyPrice:departmentRead',
        isLast: true,
        label: '部门可读'
      }, {
        id: 'crm:flyPrice:allRead',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'crm:flyPrice:create',
        isLast: true,
        label: '新建'
      }, {
        isLast: true,
        id: 'crm:flyPrice:delete',
        label: '删除'
      }, {
        id: 'crm:flyPrice:allTab',
        isLast: true,
        label: '全部Tab'
      }, {
        id: 'crm:flyPrice:awaitReplyTab',
        isLast: true,
        label: '待回复Tab'
      }, {
        id: 'crm:flyPrice:awaitAuditTab',
        isLast: true,
        label: '待审核Tab'
      }, {
        id: 'crm:flyPrice:awaitSignTab',
        isLast: true,
        label: '待签约确认Tab'
      }, {
        id: 'crm:flyPrice:completeTab',
        isLast: true,
        label: '已完成Tab'
      }]
    },
    {
      label: '询单题库',
      children: [{
        id: 'crm:question:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:question:create',
        isLast: true,
        label: '新建'
      }, {
        isLast: true,
        id: 'crm:question:delete',
        label: '删除'
      }, {
        isLast: true,
        id: 'crm:question:merge',
        label: '合并'
      }]
    }
  ]
};
// 财务
export const businessPageAuth = {
  label: '财务',
  children: [
    {
      label: '核算',
      children: [
        {
          label: '财务流水',
          children: [
            {
              id: 'crm:finance:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'crm:finance:edit',
              isLast: true,
              label: '编辑'
            },
            {
              id: 'crm:finance:topDepartment',
              isLast: true,
              label: '顶级部门可读'
            },
            {
              id: 'crm:finance:adminShow',
              isLast: true,
              label: '全部可读'
            }, {
              id: 'crm:finance:departAll',
              isLast: true,
              label: '部门可读'
            }, {
              id: 'crm:finance:add',
              isLast: true,
              label: '新增流水'
            }, {
              id: 'crm:finance:export',
              isLast: true,
              label: '导出'
            }, {
              id: 'crm:finance:import',
              isLast: true,
              label: '导入'
            }, {
              id: 'crm:finance:batchImport',
              isLast: true,
              label: '批量导入核销'
            }, {
              id: 'crm:finance:autoWriteOff',
              isLast: true,
              label: '自动核销'
            }, {
              id: 'crm:finance:noDepartment',
              isLast: true,
              label: '无部门查看'
            },
            {
              id: 'crm:finance:setNoWriteOffAmount',
              isLast: true,
              label: '设置无需核销金额'
            },
            {
              id: 'crm:finance:delete',
              isLast: true,
              label: '删除'
            }
          ]
        },
        {
          label: '财务封账',
          children: [
            {
              id: 'crm:finance:sealAccountRead',
              linkReadFooter: 'sealAccountRead',
              isLast: true,
              label: '可读'
            },
            {
              id: 'crm:finance:submitSealAmount',
              linkReadFooter: 'sealAccountRead',
              isLast: true,
              label: '提交封账'
            }, {
              id: 'crm:finance:sellFirstTrial',
              isLast: true,
              linkReadFooter: 'sealAccountRead',
              label: '销售初审'
            }, {
              id: 'crm:finance:financeRecheck',
              isLast: true,
              linkReadFooter: 'sealAccountRead',
              label: '财务复审'
            }, {
              id: 'crm:finance:financeReport',
              isLast: true,
              linkReadFooter: 'sealAccountRead',
              label: '查看报告'
            }, {
              id: 'crm:finance:backRecheck',
              isLast: true,
              linkReadFooter: 'sealAccountRead',
              label: '退回财务复审'
            }
          ]
        },
        {
          label: '成本管理',
          children: [{
            id: 'crm:cost:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:cost:create',
            isLast: true,
            label: '新建成本'
          }, {
            id: 'crm:cost:edit',
            isLast: true,
            label: '编辑成本'
          }, {
            id: 'crm:cost:delete',
            isLast: true,
            label: '删除成本'
          },
          {
            id: 'crm:cost:departmentAdmin',
            isLast: true,
            label: '部门全部可读'
          }, {
            id: 'crm:cost:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'crm:cost:ignoreRecovery',
            isLast: true,
            label: '忽略恢复'
          }, {
            id: 'crm:cost:approval',
            isLast: true,
            label: '审批'
          }, {
            id: 'crm:cost:approverChange',
            isLast: true,
            label: '转交权限'
          }, {
            id: 'crm:cost:approvalCancel',
            isLast: true,
            label: '作废审批'
          }, {
            id: 'crm:cost:batchApprovalCancel',
            isLast: true,
            label: '批量作废'
          }, {
            id: 'crm:cost:batchApproval',
            isLast: true,
            label: '批量审批'
          }, {
            id: 'crm:cost:batchExport',
            isLast: true,
            label: '批量导出'
          }, {
            id: 'crm:cost:batchDelete',
            isLast: true,
            label: '批量删除'
          }]
        },
        {
          label: '核销记录',
          children: [{
            id: 'crm:chargeReport:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:chargeReport:export',
            isLast: true,
            label: '导出'
          }, {
            id: 'crm:chargeReport:batchRepeal',
            isLast: true,
            label: '批量撤销核销'
          }]
        }
      ]
    },
    {
      label: '发票',
      children: [
        {
          label: '开票申请',
          children: [
            {
              id: 'invoice:issue:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'invoice:issue:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'invoice:issue:departmentRead',
              isLast: true,
              label: '部门可读'
            },
            {
              id: 'invoice:issue:proposerDept',
              isLast: true,
              label: '申请部门可读'
            },
            {
              id: 'invoice:issue:topDepartment',
              isLast: true,
              label: '顶级部门可读'
            },
            {
              id: 'invoice:issue:admin',
              isLast: true,
              label: '全部可读'
            },
            {
              id: 'invoice:issue:approveChange',
              isLast: true,
              label: '转交权限'
            },
            {
              id: 'invoice:issue:delete',
              isLast: true,
              label: '删除'
            },
            {
              id: 'crm:invoiceIssue:comment:delete',
              isLast: true,
              label: '删除评论'
            },
            {
              id: 'crm:invoiceIssue:record:read',
              isLast: true,
              label: '修改记录查看'
            },
            {
              id: 'crm:invoiceIssue:send',
              isLast: true,
              label: '抄送'
            },
            {
              id: 'crm:invoiceIssue:export',
              isLast: true,
              label: '导出'
            },
            {
              id: 'crm:invoiceIssue:invoiceChange',
              isLast: true,
              label: '修改发票信息'
            }
          ]
        },
        {
          label: '发票作废',
          children: [
            {
              id: 'invoice:abandon:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'invoice:abandon:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'invoice:abandon:departmentRead',
              isLast: true,
              label: '部门可读'
            },
            {
              id: 'invoice:abandon:proposerDept',
              isLast: true,
              label: '申请部门可读'
            },
            {
              id: 'invoice:abandon:topDepartment',
              isLast: true,
              label: '顶级部门可读'
            },
            {
              id: 'invoice:abandon:admin',
              isLast: true,
              label: '全部可读'
            },
            {
              id: 'invoice:abandon:approveChange',
              isLast: true,
              label: '转交权限'
            },
            // {
            //   id: 'invoice:abandon:higherRecall',
            //   isLast: true,
            //   label: '高级撤回'
            // },
            {
              id: 'invoice:abandon:delete',
              isLast: true,
              label: '删除'
            },
            {
              id: 'crm:invoiceAbandon:comment:delete',
              isLast: true,
              label: '删除评论'
            },
            {
              id: 'crm:invoiceAbandon:record:read',
              isLast: true,
              label: '修改记录查看'
            },
            {
              id: 'crm:invoiceAbandon:send',
              isLast: true,
              label: '抄送'
            }
          ]
        },
        {
          label: '销项发票',
          children: [{
            id: 'crm:receipt:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:receipt:departAll',
            isLast: true,
            label: '部门可读'
          }, {
            id: 'crm:receipt:proposerDept',
            isLast: true,
            label: '申请部门可读'
          }, {
            id: 'crm:receipt:topDepartment',
            isLast: true,
            label: '顶级部门可读'
          }, {
            id: 'crm:receipt:all',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'crm:receipt:invoiceEdit',
            isLast: true,
            label: '发票编辑'
          }, {
            id: 'crm:receipt:export',
            isLast: true,
            label: '导出'
          }
          /* {
            id: 'crm:receipt:add',
            isLast: true,
            label: '新增'
          }, {
            id: 'crm:receipt:edit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'crm:receipt:delete',
            isLast: true,
            label: '删除'
          }, {
            id: 'crm:receipt:import',
            isLast: true,
            label: '导入'
          }, {
            id: 'crm:receipt:export',
            isLast: true,
            label: '导出'
          }, {
            id: 'crm:receipt:arch',
            isLast: true,
            label: '封存'
          } */
          ]
        },
        {
          label: '进项发票',
          children: [{
            id: 'crm:inputInvoice:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:inputInvoice:department',
            isLast: true,
            label: '部门可读'
          }, {
            id: 'crm:inputInvoice:childDepartment',
            isLast: true,
            label: '子级部门可读'
          }, {
            id: 'crm:inputInvoice:topDepartment',
            isLast: true,
            label: '顶级部门可读'
          }, {
            id: 'crm:inputInvoice:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'crm:inputInvoice:add',
            isLast: true,
            label: '新建'
          }, {
            id: 'crm:inputInvoice:edit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'crm:inputInvoice:submit',
            isLast: true,
            label: '提交认证'
          }, {
            id: 'crm:inputInvoice:confirm',
            isLast: true,
            label: '确认认证'
          }, {
            id: 'crm:inputInvoice:withdraw',
            isLast: true,
            label: '撤回'
          }, {
            id: 'crm:inputInvoice:import',
            isLast: true,
            label: '导入'
          }]
        }
      ]
    },
    {
      label: '审批',
      children: [
        {
          label: '付款申请',
          children: [
            {
              label: '普通结算',
              children: [
                {
                  id: 'medium:supplierAudit:read',
                  isLast: true,
                  label: '结算查看'
                }, {
                  id: 'medium:supplierAudit:launch',
                  isLast: true,
                  label: '结算发起'
                }, {
                  id: 'medium:supplierAudit:pay',
                  isLast: true,
                  label: '结算付款'
                }, {
                  id: 'medium:supplierAudit:success',
                  isLast: true,
                  label: '完成结算'
                }, {
                  id: 'medium:supplierAudit:departAll',
                  isLast: true,
                  label: '部门全部'
                }, {
                  id: 'medium:supplierAudit:all',
                  isLast: true,
                  label: '全部'
                }, {
                  id: 'medium:supplierAudit:higherRecall',
                  isLast: true,
                  label: '高级撤回'
                }, {
                  id: 'medium:supplierAudit:approverChange',
                  isLast: true,
                  label: '转交权限'
                }, {
                  id: 'medium:supplierAudit:tagEdit',
                  isLast: true,
                  label: '标签编辑'
                }, {
                  id: 'medium:supplierAudit:batchExport',
                  isLast: true,
                  label: '批量导出'
                }, {
                  id: 'crm:supplierAudit:comment:delete',
                  isLast: true,
                  label: '删除评论'
                }, {
                  id: 'crm:supplierAudit:record:read',
                  isLast: true,
                  label: '修改记录查看'
                }, {
                  id: 'crm:supplierAudit:send',
                  isLast: true,
                  label: '抄送'
                }, {
                  id: 'crm:supplierAudit:withdrawPay',
                  isLast: true,
                  label: '撤回付款'
                }, {
                  id: 'medium:supplierAudit:settleCopy',
                  isLast: true,
                  label: '复制结算单'
                }
              ]
            },
            {
              label: '智能结算',
              children: [
                {
                  id: 'crm:smartSettle:read',
                  isLast: true,
                  label: '可读'
                }, {
                  id: 'crm:smartSettle:admin',
                  isLast: true,
                  label: '全部可读'
                }, {
                  id: 'crm:smartSettle:update',
                  isLast: true,
                  label: '更新结算数据'
                }, {
                  id: 'crm:smartSettle:batchSettle',
                  isLast: true,
                  label: '一键结算'
                }, {
                  id: 'crm:smartSettle:export',
                  isLast: true,
                  label: '导出明细'
                }, {
                  id: 'crm:smartSettle:log',
                  isLast: true,
                  label: '生成记录'
                }, {
                  id: 'crm:smartSettle:settle',
                  isLast: true,
                  label: '结算'
                }, {
                  id: 'crm:smartSettle:updateData',
                  isLast: true,
                  label: '更新数据'
                }, {
                  id: 'crm:smartSettle:order',
                  isLast: true,
                  label: '其他待结'
                }
              ]
            }
          ]
        },
        {
          label: '员工报销',
          children: [
            {
              id: 'crm:reimbursement:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'crm:reimbursement:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'crm:reimbursement:departmentRead',
              isLast: true,
              label: '部门可读'
            },
            {
              id: 'crm:reimbursement:proposerDept',
              isLast: true,
              label: '申请部门可读'
            },
            {
              id: 'crm:reimbursement:topDepartment',
              isLast: true,
              label: '顶级部门可读'
            },
            {
              id: 'crm:reimbursement:admin',
              isLast: true,
              label: '全部可读'
            },
            {
              id: 'crm:reimbursement:approveChange',
              isLast: true,
              label: '转交权限'
            },
            {
              id: 'crm:reimbursement:higherRecall',
              isLast: true,
              label: '高级撤回'
            },
            {
              id: 'crm:reimbursement:delete',
              isLast: true,
              label: '删除'
            },
            {
              id: 'crm:reimbursement:tagEdit',
              isLast: true,
              label: '标签编辑'
            },
            {
              id: 'crm:reimbursement:batchExport',
              isLast: true,
              label: '批量导出'
            },
            {
              id: 'crm:reimbursement:comment:delete',
              isLast: true,
              label: '删除评论'
            },
            {
              id: 'crm:reimbursement:record:read',
              isLast: true,
              label: '修改记录查看'
            },
            {
              id: 'crm:reimbursement:send',
              isLast: true,
              label: '抄送'
            }
          ]
        },
        {
          label: '借款申请',
          children: [{
            id: 'crm:loan:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:loan:create',
            isLast: true,
            label: '新建'
          }, {
            id: 'crm:loan:departmentRead',
            isLast: true,
            label: '部门可读'
          }, {
            id: 'crm:loan:proposerDept',
            isLast: true,
            label: '申请部门可读'
          }, {
            id: 'crm:loan:topDepartment',
            isLast: true,
            label: '顶级部门可读'
          }, {
            id: 'crm:loan:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'crm:loan:approveChange',
            isLast: true,
            label: '转交权限'
          }, {
            id: 'crm:loan:higherRecall',
            isLast: true,
            label: '高级撤回'
          }, {
            id: 'crm:loan:delete',
            isLast: true,
            label: '删除'
          }, {
            id: 'crm:loan:batchExport',
            isLast: true,
            label: '批量导出'
          }, {
            id: 'crm:loan:comment:delete',
            isLast: true,
            label: '删除评论'
          },
          {
            id: 'crm:loan:record:read',
            isLast: true,
            label: '修改记录查看'
          }, {
            id: 'crm:loan:send',
            isLast: true,
            label: '抄送'
          }
          ]
        },
        {
          label: '还款申请',
          children: [
            {
              id: 'crm:payBack:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'crm:payBack:create',
              isLast: true,
              label: '新建'
            },
            {
              id: 'crm:payBack:departmentRead',
              isLast: true,
              label: '部门可读'
            },
            {
              id: 'crm:payBack:proposerDept',
              isLast: true,
              label: '申请部门可读'
            },
            {
              id: 'crm:payBack:topDepartment',
              isLast: true,
              label: '顶级部门可读'
            },
            {
              id: 'crm:payBack:admin',
              isLast: true,
              label: '全部可读'
            },
            {
              id: 'crm:payBack:approveChange',
              isLast: true,
              label: '转交权限'
            },
            {
              id: 'crm:payBack:higherRecall',
              isLast: true,
              label: '高级撤回'
            },
            {
              id: 'crm:payBack:delete',
              isLast: true,
              label: '删除'
            },
            {
              id: 'crm:payBack:batchExport',
              isLast: true,
              label: '批量导出'
            },
            {
              id: 'crm:payBack:comment:delete',
              isLast: true,
              label: '删除评论'
            },
            {
              id: 'crm:payBack:record:read',
              isLast: true,
              label: '修改记录查看'
            },
            {
              id: 'crm:payBack:send',
              isLast: true,
              label: '抄送'
            }
          ]
        }, {
          label: '转交欠款',
          children: [{
            id: 'crm:arrearsTransfer:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'crm:arrearsTransfer:create',
            isLast: true,
            label: '新建'
          }, {
            id: 'crm:arrearsTransfer:departmentRead',
            isLast: true,
            label: '部门可读'
          }, {
            id: 'crm:arrearsTransfer:topDepartment',
            isLast: true,
            label: '顶级部门可读'
          }, {
            id: 'crm:arrearsTransfer:admin',
            isLast: true,
            label: '全部可读'
          }, {
            id: 'crm:arrearsTransfer:approveChange',
            isLast: true,
            label: '转交权限'
          }, {
            id: 'crm:arrearsTransfer:higherRecall',
            isLast: true,
            label: '高级撤回'
          }, {
            id: 'crm:arrearsTransfer:delete',
            isLast: true,
            label: '删除'
          }, {
            id: 'crm:arrearsTransfer:comment:delete',
            isLast: true,
            label: '删除评论'
          }, {
            id: 'crm:arrearsTransfer:passer:change',
            isLast: true,
            label: '修改转交人'
          }, {
            id: 'crm:arrearsTransfer:record:read',
            isLast: true,
            label: '修改记录查看'
          }, {
            id: 'crm:arrearsTransfer:send',
            isLast: true,
            label: '抄送'
          }]
        }
      ]
    }
  ]
};
// 合同
// 导入导出权限隐藏
/* {
  id: 'crm:contract:import',
  isLast: true,
  label: '导入'
}, {
  id: 'crm:contract:export',
  isLast: true,
  label: '导出'
}, */
export const contractPageAuth = {
  label: '法务',
  children: [
    {
      label: '合同审批',
      children: [
        {
          label: '可读',
          children: [
            {
              id: 'crm:contract:read',
              isLast: true,
              label: '可读'
            }, {
              id: 'crm:contract:departAll',
              isLast: true,
              label: '部门可读'
            }, {
              id: 'crm:contract:all',
              isLast: true,
              label: '全部可读'
            }, {
              id: 'crm:contract:sale',
              isLast: true,
              label: '推广销售类'
            }, {
              id: 'crm:contract:channelpurchase',
              isLast: true,
              label: '渠道采买类'
            }, {
              id: 'crm:contract:iplicense',
              isLast: true,
              label: 'IP商业授权类'
            }, {
              id: 'crm:contract:hrpurchase',
              isLast: true,
              label: '一般购销/委托服务类'
            }, {
              id: 'crm:contract:talent',
              isLast: true,
              label: '合同/kol/直播类'
            }, {
              id: 'crm:contract:platform',
              isLast: true,
              label: '机构/平台合作类'
            }, {
              id: 'crm:contract:commerce',
              isLast: true,
              label: '电商产品购销类'
            }, {
              id: 'crm:contract:invest',
              isLast: true,
              label: '投资类'
            }, {
              id: 'crm:contract:other',
              isLast: true,
              label: '其他类'
            }
          ]
        },
        {
          label: '操作',
          children: [{
            id: 'crm:contract:add',
            isLast: true,
            label: '新增'
          }, {
            id: 'crm:contract:edit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'crm:contract:delete',
            isLast: true,
            label: '删除'
          }, {
            id: 'crm:contract:generatedCode',
            isLast: true,
            label: '合同编号生成'
          }, {
            id: 'crm:contract:scanFileUpload',
            isLast: true,
            label: '扫描件上传'
          }, {
            id: 'crm:contract:scanFileDownload',
            isLast: true,
            label: '扫描件查看/下载'
          }, {
            id: 'crm:contract:higherRecall',
            isLast: true,
            label: '高级撤回'
          }, {
            id: 'crm:contract:approverChange',
            isLast: true,
            label: '转交权限'
          }, {
            id: 'crm:contract:template:delete',
            isLast: true,
            label: '文件删除'
          }, {
            id: 'crm:contract:template:folderEdit',
            isLast: true,
            label: '编辑文件夹'
          }, {
            id: 'crm:contract:templateDesc:edit',
            isLast: true,
            label: '编辑说明'
          }, {
            id: 'crm:contract:comment:delete',
            isLast: true,
            label: '删除评论'
          }, {
            id: 'crm:contract:record:read',
            isLast: true,
            label: '修改记录查看'
          }, {
            id: 'crm:contract:attachment:delete',
            isLast: true,
            label: '删除附件'
          }, {
            id: 'crm:contract:send',
            isLast: true,
            label: '抄送'
          }, {
            id: 'crm:contract:recycle',
            isLast: true,
            label: '批量合同回收'
          }]
        }
      ]
    },
    {
      label: '合同管理',
      children: [
        {
          label: '可读',
          children: [
            {
              id: 'crm:contractManage:read',
              isLast: true,
              label: '可读'
            },
            {
              id: 'crm:contractManage:departAll',
              isLast: true,
              label: '部门可读'
            }, {
              id: 'crm:contractManage:all',
              isLast: true,
              label: '全部可读'
            }, {
              id: 'crm:contractManage:sale',
              isLast: true,
              label: '推广销售类'
            }, {
              id: 'crm:contractManage:channelpurchase',
              isLast: true,
              label: '渠道采买类'
            }, {
              id: 'crm:contractManage:iplicense',
              isLast: true,
              label: 'IP商业授权类'
            }, {
              id: 'crm:contractManage:hrpurchase',
              isLast: true,
              label: '一般购销/委托服务类'
            }, {
              id: 'crm:contractManage:talent',
              isLast: true,
              label: '合同/kol/直播类'
            }, {
              id: 'crm:contractManage:platform',
              isLast: true,
              label: '机构/平台合作类'
            }, {
              id: 'crm:contractManage:commerce',
              isLast: true,
              label: '电商产品购销类'
            }, {
              id: 'crm:contractManage:invest',
              isLast: true,
              label: '投资类'
            }, {
              id: 'crm:contractManage:other',
              isLast: true,
              label: '其他类'
            }
          ]
        },
        {
          label: '操作',
          children: [
            {
              id: 'crm:contractManage:add',
              isLast: true,
              label: '新增',
              noRead: true
            }, {
              id: 'crm:contractManage:edit',
              isLast: true,
              label: '编辑',
              noRead: true
            }, {
              id: 'crm:contractManage:delete',
              isLast: true,
              label: '删除',
              noRead: true
            },
            {
              id: 'crm:contractManage:import',
              isLast: true,
              label: '批量上传',
              noRead: true
            },
            {
              id: 'crm:contractManage:batchExport',
              isLast: true,
              label: '批量导出'
            }
          ]
        }
      ]
    }, {
      label: '申请原件',
      children: [{
        label: '可读',
        isLast: true,
        id: 'crm:original:read'
      }, {
        label: '新建',
        isLast: true,
        id: 'crm:original:create'
      }, {
        label: '部门可读',
        isLast: true,
        id: 'crm:original:department'
      }, {
        label: '全部可读',
        isLast: true,
        id: 'crm:original:readAll'
      }, {
        label: '删除',
        isLast: true,
        id: 'crm:original:delete'
      }, {
        id: 'crm:original:approveChange',
        isLast: true,
        label: '转交权限'
      }, {
        id: 'crm:original:higherRecall',
        isLast: true,
        label: '高级撤回'
      }, {
        id: 'crm:original:comment:delete',
        isLast: true,
        label: '删除评论'
      },
      {
        id: 'crm:original:record:read',
        isLast: true,
        label: '修改记录查看'
      },
      {
        id: 'crm:original:send',
        isLast: true,
        label: '抄送'
      }
      ]
    }
  ]
};
// 设置
export const settingPageAuth = {
  label: '设置',
  children: [
    {
      label: '权限设置',
      children: [{
        id: 'auth:role:read',
        isLast: true,
        label: '角色可读'
      }, {
        id: 'auth:operator:read',
        isLast: true,
        label: '操作员可读'
      }, {
        id: 'auth:operator:edit',
        isLast: true,
        label: '编辑'
      }, {
        id: 'auth:operator:adminEdit',
        isLast: true,
        label: '全部编辑'
      }, {
        id: 'auth:remark:edit',
        isLast: true,
        label: '权限备注编辑'
      }]
    },
    {
      label: '用户设置',
      children: [{
        id: 'crm:userList:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:userList:edit',
        isLast: true,
        label: '编辑'
      }, {
        id: 'crm:userList:add',
        isLast: true,
        label: '新增用户'
      }, {
        id: 'crm:userList:admin',
        isLast: true,
        label: '全部编辑'
      }, {
        id: 'crm:userList:deptEdit',
        isLast: true,
        label: '编辑部门信息'
      }, {
        id: 'crm:userList:salesInfo',
        isLast: true,
        label: '查看销售信息'
      }, {
        id: 'crm:userList:syncStructure',
        isLast: true,
        label: '立即同步架构数据'
      }]
    },
    {
      label: '流程设置',
      children: [{
        id: 'crm:legal:process',
        isLast: true,
        label: '流程设置'
      },
      // {
      //   id: 'crm:legal:formDesign',
      //   isLast: true,
      //   label: '设计表单',
      //   disabled: true
      // },
      {
        id: 'crm:legal:fixedFormDesign',
        isLast: true,
        label: '编辑固定表单'
      }, {
        id: 'crm:contract:return',
        isLast: true,
        label: '退回指定节点'
      }]
    },
    {
      label: '通用设置',
      children: [
        {
          label: '全局设置',
          children: [
            {
              id: 'auth:system:global',
              label: '可读',
              readAuth: ['auth:system:global'],
              isLast: true
            },
            {
              id: 'system:notice:read',
              label: '任务通知设置',
              readAuth: ['auth:system:global'],
              isLast: true
            },
            {
              id: 'system:risk:read',
              label: '风险监控预警设置',
              readAuth: ['auth:system:global'],
              isLast: true
            },
            {
              label: '标签管理',
              id: 'system:kind:tag',
              readAuth: ['auth:system:global'],
              isLast: true
            },
            {
              label: '显示代码快照',
              id: 'system:snapshot:read',
              readAuth: ['auth:system:global'],
              isLast: true
            }
          ]
        },
        {
          label: '订单管理',
          children: [
            {
              label: '订单管理',
              children: [
                {
                  isLast: true,
                  id: 'auth:system:order',
                  label: '订单管理'
                },
                {
                  label: '添加订单分类',
                  id: 'system:kind:add',
                  isLast: true
                },
                {
                  label: '编辑订单分类',
                  id: 'system:kind:edit',
                  isLast: true
                },
                {
                  label: '删除订单分类',
                  id: 'system:kind:del',
                  isLast: true
                }
              ]
            }, {
              label: '收入项配置',
              children: [
                {
                  isLast: true,
                  id: 'auth:system:income',
                  label: '收入项配置'
                },
                {
                  label: '添加收入项',
                  id: 'system:income:add',
                  isLast: true
                },
                {
                  label: '编辑收入项',
                  id: 'system:income:edit',
                  isLast: true
                },
                {
                  label: '删除收入项',
                  id: 'system:income:del',
                  isLast: true
                }
              ]
            }
          ]
        }, {
          label: '财务管理',
          children: [{
            id: 'auth:system:finance',
            isLast: true,
            label: '财务管理'
          }, {
            id: 'auth:system:checkFinanceInfo',
            isLast: true,
            label: '查看财务信息'
          }]
        }, {
          label: '供应商管理',
          children: [{
            id: 'auth:system:supplier',
            isLast: true,
            label: '可读'
          }, {
            id: 'auth:system:supplierAdd',
            isLast: true,
            label: '添加'
          }, {
            id: 'auth:system:supplierEdit',
            isLast: true,
            label: '编辑'
          }, {
            id: 'auth:system:supplierDelete',
            isLast: true,
            label: '删除'
          }]
        }, {
          label: '客户管理',
          children: [{
            id: 'auth:system:client',
            isLast: true,
            label: '客户管理'
          }]
        }, {
          label: '资源管理',
          children: [{
            id: 'auth:system:resource',
            isLast: true,
            label: '资源管理'
          }, {
            id: 'auth:system:operateModeEdit',
            isLast: true,
            label: '运营模式编辑'
          }]
        }, {
          label: '经营分析',
          children: [{
            id: 'auth:system:total',
            isLast: true,
            label: '经营分析'
          },
            // 字段分类管理
          {
            id: 'total:field:create',
            isLast: true,
            label: '新建字段'
          },
          {
            id: 'total:field:edit',
            isLast: true,
            label: '编辑字段'
          },
          {
            id: 'total:field:delete',
            isLast: true,
            label: '删除字段'
          }]
        }, {
          label: '发票管理',
          children: [{
            id: 'auth:system:receipt',
            isLast: true,
            label: '发票管理'
          }]
        }, {
          label: '合同管理',
          children: [{
            id: 'auth:system:contract',
            isLast: true,
            label: '合同管理'
          }]
        }, {
          label: '成本管理',
          children: [{
            id: 'system:cost:read',
            isLast: true,
            label: '查看已有成本项'
          }, {
            label: '添加成本项',
            id: 'system:cost:add',
            isLast: true
          }]
        }, {
          label: '萌力星球',
          children: [{
            label: 'IP系列管理',
            children: [{
              id: 'system:ipSeries:read',
              isLast: true,
              label: '可读'
            }, {
              id: 'system:ipSeries:create',
              isLast: true,
              label: '新建'
            }, {
              id: 'system:ipSeries:edit',
              isLast: true,
              label: '编辑'
            }, {
              id: 'system:ipSeries:delete',
              isLast: true,
              label: '删除'
            }]
          }, {
            label: '仓库配置',
            children: [{
              id: 'system:mengliRepo:read',
              isLast: true,
              label: '可读'
            }, {
              id: 'system:mengliRepo:create',
              isLast: true,
              label: '添加仓库'
            }, {
              id: 'system:mengliRepo:edit',
              isLast: true,
              label: '编辑'
            }, {
              id: 'system:mengliRepo:delete',
              isLast: true,
              label: '删除'
            }]
          }, {
            id: 'system:mengliRepo:orderConfig',
            isLast: true,
            label: '订单配置项'
          }, {
            id: 'system:mengliRepo:userNotify',
            isLast: true,
            label: '预警通知人员编辑'
          }, {
            id: 'auth:system:mengli',
            isLast: true,
            label: '萌力星球'
          }]
        }, {
          label: '运营管理',
          children: [{
            id: 'system:operate:read',
            isLast: true,
            label: '可读'
          }, {
            id: 'system:operate:health',
            isLast: true,
            label: '健康值'
          }]
        }]
    },
    {
      label: '交接管理',
      children: [{
        id: 'auth:handover:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'auth:handover:allRead',
        isLast: true,
        label: '全部可读'
      }, {
        id: 'auth:handover:transferee',
        isLast: true,
        label: '允许选择交接人'
      }]
    },
    {
      label: '操作日志',
      children: [{
        id: 'auth:log:read',
        isLast: true,
        label: '可读'
      }]
    },
    {
      label: '部门管理',
      children: [{
        id: 'auth:department:create',
        isLast: true,
        label: '添加部门'
      }, {
        id: 'auth:department:setLeader',
        isLast: true,
        label: '设为主管'
      }]
    },
    {
      label: 'BP管理',
      children: [{
        id: 'crm:BPManage:read',
        isLast: true,
        label: '可读'
      }, {
        id: 'crm:BPManage:create',
        isLast: true,
        label: '设置BP'
      }]
    }
  ]
};
export const helpAuth = {
  label: '帮助中心',
  children: [
    {
      id: 'crm:help:add',
      isLast: true,
      label: '添加文章'
    },
    {
      id: 'crm:help:edit',
      isLast: true,
      label: '编辑'
    },
    {
      id: 'crm:help:del',
      isLast: true,
      label: '删除'
    }
  ]
};
// export const chatGptAuth = {
//   label: 'ChatGPT',
//   children: [{
//     id: 'crm:chatGpt:read',
//     isLast: true,
//     label: '可读'
//   }]
// };
export const allAuth = [
  homePageAuth, orderPageAuth, resourcePageAuth, operatePageAuth, customerPageAuth, supplierPageAuth,
  businessPageAuth, contractPageAuth, settingPageAuth, helpAuth
];
